package com.andy.controller;

import com.andy.myFramework.ioc.annotation.Autowire;
import com.andy.myFramework.mvc.annotation.Controller;
import com.andy.myFramework.mvc.annotation.RequestMapping;
import com.andy.myFramework.mvc.annotation.Security;
import com.andy.service.DemoService;

@Controller
@Security("Trump")
@RequestMapping("/demo")
public class DemoController {

    @Autowire
    private DemoService demoService;

    @Security("Andy")
    @RequestMapping("/get01")
    public String getDemo01(String param){
        return demoService.getDemoString01(param);
    }

    @RequestMapping("/get02")
    public String getDemo02(String param){
        return demoService.getDemoString02(param);
    }

}
